<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'saleReport.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap.min.css" />

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap-theme.min.css" />

</head>

<body style="margin:0;padding:0">
	<div style="width:450px;  margin: 0 auto;margin-top:25px;float:left;margin-right:25px">
		<table class="table table-bordered">
			<tr class="info">
				<td>出错日期(月)</td>
				<td>出错人</td>
				<td>出错类型</td>
				<td>出错次数</td>
			</tr>
			<c:if test="${shipList==null || fn:length(shipList) == 0}">
				<tr>
					<td colspan="4">暂无统计数据 ！</td>
				</tr>
			</c:if>
			<c:set var="tjNum" value="1" />
			<c:forEach items="${shipDeliveryMonthList}" var="ship">
				<tr>
					<c:if test="${tjNum == 1}">
						<td rowspan=${shipMonthMap[ship.dimensionDate].count} style="text-align:center;vertical-align:middle">${ship.dimensionDate}</td>
					</c:if>
					<td>${ship.errorman}</td>
					<td>${ship.errorreason}</td>
					<td>${ship.errorCount}</td>
				</tr>
				<c:if test="${tjNum == shipMonthMap[ship.dimensionDate].count}">
					<c:set var="tjNum" value="0" />
				</c:if>
				<c:set var="tjNum" value="${tjNum+1}" />
			</c:forEach>
		</table>
	</div>
	<div style="width:450px;  margin: 0 auto;margin-top:25px;float:left">
		<table class="table table-bordered">
			<tr class="info">
				<td>出错日期</td>
				<td>出错人</td>
				<td>出错类型</td>
				<td>出错次数</td>
			</tr>
			<c:if test="${shipList==null || fn:length(shipList) == 0}">
				<tr>
					<td colspan="4">暂无统计数据 ！</td>
				</tr>
			</c:if>
			<c:set var="tjNum" value="1" />
			<c:forEach items="${shipList}" var="ship">
				<tr>
					<c:if test="${tjNum == 1}">
						<td rowspan=${shipMap[ship.dimensionDate].count} style="text-align:center;vertical-align:middle">${ship.dimensionDate}</td>
					</c:if>
					<td>${ship.errorman}</td>
					<td>${ship.errorreason}</td>
					<td>${ship.errorCount}</td>
				</tr>
				<c:if test="${tjNum == shipMap[ship.dimensionDate].count}">
					<c:set var="tjNum" value="0" />
				</c:if>
				<c:set var="tjNum" value="${tjNum+1}" />
			</c:forEach>
		</table>
	</div>
</body>
</html>





